package LanQiao;

import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
        int n = 0;
        Scanner scanner = new Scanner(System.in);

        n = scanner.nextInt();

        int[] arr = new int[n + 1];

        for (int i = 1; i < n + 1; i++) {
            arr[i] = scanner.nextInt();
        }

        boolean[] dp = new boolean[n + 1];

        dp[0] = false;

        int max = 0;

        for (int i = 1; i < n + 1; i++) {
            if (arr[i] > max) {
                dp[i] = true;
                max = arr[i];
            }
        }

        int count = 0;

        for (boolean flag : dp) {
            if (flag) {
                count++;
            }
        }

        System.out.println(count);
    }
}
